package org.whuims.insapplication.service;

import org.springframework.stereotype.Service;
import org.whuims.insapplication.bean.BelongTo;
import org.whuims.insapplication.repository.BelongToRepository;

import javax.annotation.Resource;
import javax.transaction.Transactional;

/**
 * Created by unclewang on 2017/5/25.
 */
@Service
public class BelongToService {
    @Resource
    private BelongToRepository belongToRepository;
    @Transactional
    public Iterable<BelongTo> getall(){
        return belongToRepository.findAll();
    }
}
